//
//  YGCategoryView.h
//  yunGuang
//
//  Created by IOS on 2022/5/7.
//  Copyright © 2022 Brezze GWG. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface YGCategoryView : UIView



@end



@interface YGCategoryCustomView : UIView

//- (instancetype)initWith:(NSArray *)titles isFullWidth:(BOOL)isFullWidth;

- (instancetype)initWithFrame:(CGRect)frame titles:(NSArray *)titles;

@property (nonatomic,strong) NSArray *titles;

@property (nonatomic,assign) BOOL isFullWidth;

@property (nonatomic,copy) BRIntBlock itemSeletedBlock;

@property (nonatomic,strong) UIView *itemBGView;

@property (nonatomic,assign) NSInteger currIndex;

@property (nonatomic,strong) UIColor *defColor;
@property (nonatomic,strong) UIColor *selColor;
@property (nonatomic,strong) UIColor *itemBGColor;

- (void)itemMove:(NSInteger)index;

/// 蓝色阴影
- (void)br_itemAddShadow;

@end
/// 多选择item 上下文结构
@interface YGCategoryNumView : UIView

- (instancetype)initWithFrame:(CGRect)frame titles:(NSArray *)titles;

@property (nonatomic,strong) NSArray *titles;

@property (nonatomic,copy) BRIntBlock itemSeletedBlock;

@property (nonatomic,strong) UIView *itemBGView;

@property (nonatomic,assign) NSInteger currIndex;

@property (nonatomic,assign) NSInteger titleLNumLine;


@end

/// 多选择item 上下文结构 文本换行
@interface YGCategoryNum2View : UIView

- (instancetype)initWith:(CGFloat)itemW titles:(NSArray *)titles;

@property (nonatomic,strong) NSArray *titles;

@property (nonatomic,copy) BRIntBlock itemSeletedBlock;

@property (nonatomic,strong) UIView *itemBGView;

@property (nonatomic,assign) NSInteger currIndex;

@property (nonatomic,assign) NSInteger titleLNumLine;

@property (nonatomic,strong) UIView *shadowView;

- (void)br_titleView:(NSString *)text by:(NSInteger)index;

- (void)br_setCurrIndex:(NSInteger)index;

@end

/// 多选择item 按钮样式切换
@interface YGCategoryBtnView : UIView

- (instancetype)initWithTitles:(NSArray *)titles;

- (instancetype)initWithTitles:(NSArray *)titles cornerRadius:(CGFloat)radius;

@property (nonatomic,copy) BRIntBlock itemSeletedBlock;

@end


NS_ASSUME_NONNULL_END
